<?php

//$docroot="http://alice-tan/scrap/";

require_once("conf.php");
require($srvpath."view/front.php");
require($srvpath."view/panel.php");

//require_once($srvpath."conf.php");
require($srvpath."engine/main.php");
require($srvpath."engine/cpanel.php");

//echo $sitetitle;

global $fparams;
//$front_params=array();
//$front_params=array("title"=>"$sitetitle");
//$front_params["title"]=$sitetitle;
//echo 'dede'.$front_params["title"];
//global $fparams;
//echo $fparams["stylesheet"];
//$front_params["stylesheet"]=$fparams["stylesheet"];
//echo $fparams["stylesheet"];

#$fparams["junk"]=$_GET["junk"];

#echo $_GET["display"];

if (!$_GET['p']&&!$_POST) {
	$_GET['p']='front';
	render($_GET);
}
else {
	render($_GET);
}

?>
